﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CottagesOfHope.Core.Models
{
    public class Tasks
    {
        [Key]
        public int TaskId { get; set; }
        public int UserId { get; set; } 
        [Required(ErrorMessage = "Task Name is Required")]
        public string Title { get; set; }
        public string Description { get; set; }
        [DataType(DataType.Date)]
        [Required(ErrorMessage = "Start Date is Required")]
        public DateTime StartDate { get; set; }
        [DataType(DataType.Date)]
        [Required(ErrorMessage = "End Date is Required")]
        public DateTime EndDate { get; set; }
        [DataType(DataType.Time)]
        public DateTime StartTime { get; set; }
        [DataType(DataType.Time)]
        public DateTime EndTime { get; set; }
        public bool Completed { get; set; }

    }

    public class TaskEditModel
    {
        public string Message { get; set; }
        public Tasks Task { get; set; }
    }
}
